<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../common.inc" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="./css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript">	
	function submitSelectDept(){		
		var selectValue = "";
		var radios = document.getElementsByName('id');
		for(var i = 0; i < radios.length; i++){
			if(radios[i].checked){
				selectValue = radios[i].value;
				break;
			}
		}		
		if(selectValue != ""){
			window.returnValue = selectValue;
			self.close();
		}else{
			alert("请选择部门！");
		}
	}	
</script>
</head>
<body style="margin: 10px 5px 0 5px;">
	<div class="tools">
		<input class="btn1" type="button" value="<fmt:message key='common.button.ok2'/>" onclick="submitSelectDept()"/>&nbsp;&nbsp;
		<input class="btn1" type="button" value="<fmt:message key='common.button.cancel2'/>" onclick="window.close();"/>&nbsp;&nbsp;
	</div>

	<table id="tDept" class="table_style" style="text-align: center;">
		<tr>
			<td class="title4" width="15%"><fmt:message key='common.lable.checkbox'/></td>
			<td class="title4"><fmt:message key='dept.lable.deptName'/></td>
		</tr>
		<c:forEach var="range" items="${ranges['22']}">
		<tr>
			<td><input id="id" name="id" type="radio" value="${range.id},${range.rangeValue}"/></td>
			<td>${range.rangeValue}</td>
		</tr>
		</c:forEach>
	</table>
</body>
</html>